package com.shaoshaohuo.app.view;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.widget.TextView;

/**
 * Created by Administrator on 2017/7/13.
 */

public class DeleteTextView extends TextView {
    public DeleteTextView(Context context) {
        super(context);
    }

    public DeleteTextView(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }

    public DeleteTextView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    protected void onDraw(Canvas canvas) {
        super.onDraw(canvas);
        Paint paint = new Paint();
        paint.setColor(Color.parseColor("#3d3d3d"));
        paint.setAntiAlias(true);
        canvas.drawLine(0, getHeight() / 2, getWidth(), getHeight() / 2, paint);

    }
}
